﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;

#nullable disable

namespace SystemLYH.Infrstructre.Migrations
{
    /// <inheritdoc />
    public partial class 质检 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "Qualitydurings",
                columns: table => new
                {
                    QualityId = table.Column<int>(type: "integer", nullable: false)
                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
                    QualityNumber = table.Column<string>(type: "text", nullable: true),
                    QualityName = table.Column<string>(type: "text", nullable: true),
                    SupplierID = table.Column<int>(type: "integer", nullable: false),
                    finishedProductNumber = table.Column<string>(type: "text", nullable: true),
                    finishedProductName = table.Column<string>(type: "text", nullable: true),
                    finishedProductModel = table.Column<string>(type: "text", nullable: true),
                    BomNumbering = table.Column<string>(type: "text", nullable: true),
                    finishedSize = table.Column<string>(type: "text", nullable: true),
                    finishedBatch = table.Column<string>(type: "text", nullable: true),
                    productionlineNumber = table.Column<string>(type: "text", nullable: true),
                    productionlineName = table.Column<string>(type: "text", nullable: true),
                    CraftManageNumber = table.Column<string>(type: "text", nullable: true),
                    CraftManageName = table.Column<string>(type: "text", nullable: true),
                    ProcessNumber = table.Column<string>(type: "text", nullable: true),
                    ProcessName = table.Column<string>(type: "text", nullable: true),
                    Qualityquantity = table.Column<int>(type: "integer", nullable: false),
                    Qualified = table.Column<int>(type: "integer", nullable: false),
                    UnQualified = table.Column<int>(type: "integer", nullable: false),
                    QualityResults = table.Column<string>(type: "text", nullable: true),
                    Remark = table.Column<string>(type: "text", nullable: true),
                    QualityType = table.Column<string>(type: "text", nullable: true),
                    QualityScheme = table.Column<string>(type: "text", nullable: true),
                    QualityState = table.Column<string>(type: "text", nullable: true),
                    Examine = table.Column<string>(type: "text", nullable: true),
                    IsDel = table.Column<bool>(type: "boolean", nullable: false),
                    AddName = table.Column<string>(type: "text", nullable: true),
                    AddTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
                    UpdateName = table.Column<string>(type: "text", nullable: true),
                    UpdateTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
                    DelectName = table.Column<string>(type: "text", nullable: true),
                    DelectTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Qualitydurings", x => x.QualityId);
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Qualitydurings");
        }
    }
}
